# age = int(input('请输入你的年龄：'))
# if age >= 18:
#     print('你已经成年了')
# else:
#     print('你还没有成年')
# num1 = 25
# num2 = 1
# while(num1 != num2):
#     num2 = int(input('请输入你猜的数字：'))
#     if num1 > num2:
#         print('你输入的数小了')
#     elif num1 < num2:
#         print('你输入的数大了')
# print('猜对了')
#
# num = int(input('请输入一个数字：'))
# if num % 2 ==0:
#     if num % 3 ==0:
#         print("这个数字既能被2也能被3整除")
#     else:
#         print("这个数字既能被2整除，不能被3整除")
# else:
#     if num % 3 ==0:
#         print("这个数字可以被3整除，不能被2整除")
#     else:
#         print("这个数字既不能被2整除，也不能被3整除")
#
# 4.
# sum=0
# a=1
# while(a <= 100):
#     sum = sum+a
#     a = a+1
# print(sum)
#
#
# while():
#     print("无限循环中！")
#
# 5.
# count = 0
# while count < 5:
#     print(count,"<5")
#     count = count+1
# else:
#     print(count+"=5")
#
# count = 0
# while count < 5:
#     print(str(count),"<5")
#     count = count+1
# else:
#     print(str(count)+"=5")
#
# 6.
# list1=[1,2,3,4,5]
# for i in list1:
#     print(i)
#
# str1='abcdefg'
# for j in str1:
#     print(j)
#
# for i in range(5):
#     print(i)
# for i in range(2,10):
#     print(i)
# for i in range(0,11,3):
#     print(i)
# print(list(range(5)))